#!/usr/bin/python
# this is a simple example to sniff on port 80 for magic CAFEBABE. 
# it has to run either sudo root on any Unix or with windows admin right. 
# author email: pythonrocks@gmail.com. 
import dpkt, pcap
import re
import sys

pc = pcap.pcap()
pc.setfilter('tcp and dst port 80')

print 'listening on %s: %s' % (pc.name, pc.filter)

while True:
	time.sleep(1)
